//入口文件
import Vue from 'vue'

import VueRouter from 'vue-router' //导入路由的包 1.1
Vue.use(VueRouter) //安装路由 1.2
import router from './router.js' //导入自己的router.js路由模块 1.3

//导入App根组件
import app from './App.vue'

//按需导入 Mint-UI 中的组件
import { Header } from 'mint-ui';
Vue.component(Header.name, Header);

//导入 Mui 样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

import { Swipe, SwipeItem } from 'mint-ui';

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//导入vue-resource
//安装vue-resource
import VueResoure from 'vue-resource'
Vue.use(VueResoure);

var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router //挂在路由对象 到VM实例上 1.4
})